'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	// let a = {
	// 	path: '/',
	// 	httpMethod: 'POST',
	// 	headers: {
	// 		'content-length': '286',
	// 		cookie: 'acw_tc=2760774b16323268752032653e38a397c5880aa94eedc650fa64cf970b8c6a',
	// 		'postman-token': '72756e83-d2c4-4b19-aa52-4a98c83b6c80',
	// 		'x-forwarded-for': '106.6.82.129, 39.96.119.82',
	// 		accept: '*/*',
	// 		'x-real-ip': '106.6.82.129',
	// 		host: 'e395c07f-e828-4cfe-8b2e-ff0349a240ef.bspapp.com',
	// 		'content-type': 'multipart/form-data; boundary=--------------------------238399890165341214411039',
	// 		'x-forwarded-by': '172.20.6.147:80',
	// 		'cache-control': 'no-cache',
	// 		'accept-encoding': 'gzip, deflate, br',
	// 		'user-agent': 'PostmanRuntime/7.26.8'
	// 	},
	// 	queryStringParameters: {
	// 		fileList: '["https://vkceyugu.cdn.bspapp.com/VKCEYUGU-e395c07f-e828-4cfe-8b2e-ff0349a240ef/85e39484-dc51-43b0-92b8-50f3fa801016.jpeg"]'
	// 	},
	// 	isBase64Encoded: false,
	// 	body: ''
	// }
	let result = await uniCloud.deleteFile({
		fileList: JSON.parse(event.body)
	});
	//返回数据给客户端
	return result
};
